<?php

namespace App\Http\Controllers\Main;

use App\Position;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class RecruitController extends Controller
{
    public function index()
    {
        #获取招聘信息
        $recruit = Position::orderBy('rank','DESC')->orderBy('create_time','desc')->take(6)->get();
        $color = 6;
        return view('main/recruit',compact('recruit','color'));
    }
}
